#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"


void TextStack()
{
	Stack ST;
	StackInit(&ST);

	StackPush(&ST, 1);
	StackPush(&ST, 2);
	StackPush(&ST, 3);
	StackPush(&ST, 4);
	while (!StackEmpty(&ST))
	{
		printf("%d ", StackTop(&ST));
		StackPop(&ST);
	}

	StackDestroy(&ST);
}


int main()
{
	TextStack();

	return 0;
}